import axios from '../utils/request'

// 封装了一个登录的数据请求接口
export function loginFn(data: { adminname: string, password: string }) {
    return axios({
        url: '/admin/login',
        data,
        method: 'post'
    })
}